/** 全局唯一数据中心 **/
import { init, RematchDispatch, RematchRootState } from '@rematch/core'

import { models, RootModel } from './models'

export const store = init<RootModel>({
  models
})

export type Store = typeof store
export type Dispatch = RematchDispatch<RootModel>
export type RootState = RematchRootState<RootModel>
